package ooday04.homework.homewwork_02;

public class AnnoInnerClassDemo {
    public static void main(String[] args) {
        Inter inter=new Inter(){};

        InterInter interInter=new InterInter(){
            public void show(){
                System.out.println("匿名内部类实现");
            }
        };
        interInter.show();

        InterInter interInter1=()->
            System.out.println("lambda表达式实现");

        interInter1.show();
    }
}
